package com.sky.mapper;

import com.sky.entity.DishFlavor;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Sabrina
 * @Date:2025/06/10/17:20
 * @Description:
 */
@Mapper
public interface UserDishMapper {

    /**
     * 菜品表和分类表联查
     * @param categoryId
     * @return
     */
    List<DishVO> getDisheByCategoryId(Long categoryId);

    /**
     * 查菜品口味
     * @param id
     * @return
     */
    @Select("SELECT * FROM dish_flavor WHERE dish_id = #{id}")
    ArrayList<DishFlavor> getDishFlavor(Long id);
}
